﻿using System;
using System.Collections;

public static class ListExt
{
    public static bool IsNullOrEmpty(this ICollection collection)
    {
        return (collection == null || collection.Count == 0);
    }

    public static bool IsNullOrEmpty(this Array collection)
    {
        return (collection == null || collection.Length == 0);
    }
}